.class Lcom/opongo/blogapp/manager/ImageManager$PhotosQueue;
.super Ljava/lang/Object;
.source "ImageManager.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/opongo/blogapp/manager/ImageManager;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "PhotosQueue"
.end annotation


# instance fields
.field private imgsToLoad:Ljava/util/Stack;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Stack",
            "<",
            "Lcom/opongo/blogapp/manager/ImageManager$imgToLoad;",
            ">;"
        }
    .end annotation
.end field

.field final synthetic this$0:Lcom/opongo/blogapp/manager/ImageManager;


# direct methods
.method private constructor <init>(Lcom/opongo/blogapp/manager/ImageManager;)V
    .locals 1
    .parameter

    .prologue
    .line 198
    iput-object p1, p0, Lcom/opongo/blogapp/manager/ImageManager$PhotosQueue;->this$0:Lcom/opongo/blogapp/manager/ImageManager;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 199
    new-instance v0, Ljava/util/Stack;

    invoke-direct {v0}, Ljava/util/Stack;-><init>()V

    iput-object v0, p0, Lcom/opongo/blogapp/manager/ImageManager$PhotosQueue;->imgsToLoad:Ljava/util/Stack;

    return-void
.end method

.method synthetic constructor <init>(Lcom/opongo/blogapp/manager/ImageManager;Lcom/opongo/blogapp/manager/ImageManager$PhotosQueue;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 198
    invoke-direct {p0, p1}, Lcom/opongo/blogapp/manager/ImageManager$PhotosQueue;-><init>(Lcom/opongo/blogapp/manager/ImageManager;)V

    return-void
.end method

.method static synthetic access$1(Lcom/opongo/blogapp/manager/ImageManager$PhotosQueue;)Ljava/util/Stack;
    .locals 1
    .parameter

    .prologue
    .line 199
    iget-object v0, p0, Lcom/opongo/blogapp/manager/ImageManager$PhotosQueue;->imgsToLoad:Ljava/util/Stack;

    return-object v0
.end method


# virtual methods
.method public clean(Landroid/widget/ImageView;)V
    .locals 2
    .parameter "image"

    .prologue
    .line 203
    const/4 v0, 0x0

    .local v0, j:I
    :goto_0
    iget-object v1, p0, Lcom/opongo/blogapp/manager/ImageManager$PhotosQueue;->imgsToLoad:Ljava/util/Stack;

    invoke-virtual {v1}, Ljava/util/Stack;->size()I

    move-result v1

    if-lt v0, v1, :cond_0

    .line 209
    return-void

    .line 204
    :cond_0
    iget-object v1, p0, Lcom/opongo/blogapp/manager/ImageManager$PhotosQueue;->imgsToLoad:Ljava/util/Stack;

    invoke-virtual {v1, v0}, Ljava/util/Stack;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/opongo/blogapp/manager/ImageManager$imgToLoad;

    iget-object v1, v1, Lcom/opongo/blogapp/manager/ImageManager$imgToLoad;->imageView:Landroid/widget/ImageView;

    if-ne v1, p1, :cond_1

    .line 205
    iget-object v1, p0, Lcom/opongo/blogapp/manager/ImageManager$PhotosQueue;->imgsToLoad:Ljava/util/Stack;

    invoke-virtual {v1, v0}, Ljava/util/Stack;->remove(I)Ljava/lang/Object;

    goto :goto_0

    .line 207
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method
